package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EmployeeServiceChargeCategoryMapper;
import com.ruoyi.system.domain.EmployeeServiceChargeCategory;
import com.ruoyi.system.service.IEmployeeServiceChargeCategoryService;

/**
 * 员工服务计费项分类Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-12
 */
@Service
public class EmployeeServiceChargeCategoryServiceImpl implements IEmployeeServiceChargeCategoryService
{
    @Autowired
    private EmployeeServiceChargeCategoryMapper employeeServiceChargeCategoryMapper;

    /**
     * 查询员工服务计费项分类
     *
     * @param id 员工服务计费项分类主键
     * @return 员工服务计费项分类
     */
    @Override
    public EmployeeServiceChargeCategory selectEmployeeServiceChargeCategoryById(Long id)
    {
        return employeeServiceChargeCategoryMapper.selectEmployeeServiceChargeCategoryById(id);
    }

    /**
     * 查询员工服务计费项分类列表
     *
     * @param employeeServiceChargeCategory 员工服务计费项分类
     * @return 员工服务计费项分类
     */
    @Override
    public List<EmployeeServiceChargeCategory> selectEmployeeServiceChargeCategoryList(EmployeeServiceChargeCategory employeeServiceChargeCategory)
    {
        return employeeServiceChargeCategoryMapper.selectEmployeeServiceChargeCategoryList(employeeServiceChargeCategory);
    }

    /**
     * 新增员工服务计费项分类
     *
     * @param employeeServiceChargeCategory 员工服务计费项分类
     * @return 结果
     */
    @Override
    public int insertEmployeeServiceChargeCategory(EmployeeServiceChargeCategory employeeServiceChargeCategory)
    {
        return employeeServiceChargeCategoryMapper.insertEmployeeServiceChargeCategory(employeeServiceChargeCategory);
    }

    /**
     * 修改员工服务计费项分类
     *
     * @param employeeServiceChargeCategory 员工服务计费项分类
     * @return 结果
     */
    @Override
    public int updateEmployeeServiceChargeCategory(EmployeeServiceChargeCategory employeeServiceChargeCategory)
    {
        return employeeServiceChargeCategoryMapper.updateEmployeeServiceChargeCategory(employeeServiceChargeCategory);
    }

    /**
     * 批量删除员工服务计费项分类
     *
     * @param ids 需要删除的员工服务计费项分类主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeServiceChargeCategoryByIds(Long[] ids)
    {
        return employeeServiceChargeCategoryMapper.deleteEmployeeServiceChargeCategoryByIds(ids);
    }

    /**
     * 删除员工服务计费项分类信息
     *
     * @param id 员工服务计费项分类主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeServiceChargeCategoryById(Long id)
    {
        return employeeServiceChargeCategoryMapper.deleteEmployeeServiceChargeCategoryById(id);
    }
}
